package org.marketing.common.dms.dto;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class ResultCouponMessageDetail {
	private Long cardNo;
	private String amount;
	private String description;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date expiryDate;
	private Integer source;
	private Integer cardType;
	private String maxCost;
	
	public Long getCardNo() {
		return cardNo;
	}

	public void setCardNo(Long cardNo) {
		this.cardNo = cardNo;
	}



	public String getAmount() {
		if(amount==null)
			amount="";
		return amount;
	}

	public void setAmount(String amount) {
		if(amount==null)
			amount="";
		else
		this.amount = amount;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}


	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public Integer getCardType() {
		return cardType;
	}

	public void setCardType(Integer cardType) {
		this.cardType = cardType;
	}



	public String getMaxCost() {
		if(maxCost==null)
			maxCost="";
		return maxCost;
	}

	public void setMaxCost(String maxCost) {
		if(maxCost==null)
			maxCost="";
		else
		this.maxCost = maxCost;
	}

	@Override
	public String toString() {
		return "ResultCouponMessageDetail [cardNo=" + cardNo + ", amount=" + amount + ", description=" + description
				+ ", expiryDate=" + expiryDate + ", source=" + source + ", cardType=" + cardType + "]";
	}

	


	
}
